import { request } from "../utils/axios"

enum VarType { API_CONFIG, SYS }

export default {
  VarType,
  getVars (type?: VarType) {
    switch (type) {
      case VarType.SYS:
        return request({
          url: '/framework/apisysconfig/querySysConfig'
        })
      default:
        return request({
          url: '/framework/apisysconfig/queryApiDefaultConfig'
        })
    }
  }
}
